#include "UseShape.h"
#include "Rectangle.h"
#include "Triangle.h"

int main() {
    auto rec1 = std::make_shared<Rectangle>();
    auto tri1 = std::make_shared<Triangle>();
    // Shape* rec1 = new Rectangle();
    // Triangle tri1;
    // UseRectangleShape
    //UseTriangleShape
    //UseShape
    UseShape useShape1(rec1);
    useShape1.operation();
    UseShape useShape2(tri1);
    useShape2.operation();
    // delete rec1;
    return 0;
}